package org.xiaojun.loginDemo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author xj
 * @create 2021/8/6 16:32
 */
@Controller
public class TestController {

    @RequestMapping("/test")
    public String testPage(Model model){

        model.addAttribute("msg", "hello world");

        return "test";
    }
}
